﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.ModelForJD
{
    /// <summary>
    /// 京东订单
    /// </summary>
   public class SelectJdOrderJD
    {
        /// <summary>
        /// 返回标识
        /// </summary>
        public bool success { get; set; }
        /// <summary>
        /// 返回描述
        /// </summary>
        public string resultMessage { get; set; }
        /// <summary>
        /// 返回编码
        /// </summary>
        public string resultCode { get; set; }
        public GetSelectJdOrderJD result { get; set; }
    }
    public class GetSelectJdOrderJD
    {
        /// <summary>
        /// 订单状态  0为取消订单  1为有效
        /// </summary>
        public int orderState { get; set; }
        /// <summary>
        /// 0为未确认下单订单   1为确认下单订单
        /// </summary>
        public int submitState { get; set; }
        /// <summary>
        /// orderNakedPrice
        /// </summary>
        public string orderNakedPrice { get; set; }
        /// <summary>
        /// 订单类型   1是父订单   2是子订单
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 订单税率
        /// </summary>
        public string orderTaxPrice { get; set; }
        public List<GetSelectJdOrder> pOrder { get; set; }
        public List<GetJDOrderSelect> cOrder { get; set; }
    }
    public class GetSelectJdOrder
    {
        /// <summary>
        /// 京东订单编号
        /// </summary>
        public string jdOrderId { get; set; }
        /// <summary>
        /// 订单价格
        /// </summary>
        public string orderPrice { get; set; }
        /// <summary>
        /// 运费（合同配置了才返回）
        /// </summary>
        public string freight { get; set; }
        public List<SelectJD> sku { get; set; }
    }
    public class GetJDOrderSelect
    {
        /// <summary>
        /// 父订单号
        /// </summary>
        public string pOrder { get; set; }
        /// <summary>
        /// 订单状态  0为取消订单  1为有效
        /// </summary>
        public string orderState { get; set; }
        /// <summary>
        /// 京东订单编号
        /// </summary>
        public string jdOrderId { get; set; }
        /// <summary>
        /// state
        /// </summary>
        public int state { get; set; }
        /// <summary>
        /// 0为未确认下单订单   1为确认下单订单
        /// </summary>
        public int submitState { get; set; }
        /// <summary>
        /// 订单价格
        /// </summary>
        public string orderPrice { get; set; }
        /// <summary>
        /// 运费（合同配置了才返回）
        /// </summary>
        public string freight { get; set; }
        /// <summary>
        /// orderNakedPrice
        /// </summary>
        public string orderNakedPrice { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 订单税率
        /// </summary>
        public string orderTaxPrice { get; set; }
        public List<SelectJD> sku { get; set; }
    }

    public class SelectJD
    {
        /// <summary>
        /// 商品编号
        /// </summary>
        public string skuId { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int num { get; set; }
        /// <summary>
        /// 类别
        /// </summary>
        public int category { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// oid
        /// </summary>
        public string oid { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 税
        /// </summary>
        public string tax { get; set; }
        /// <summary>
        /// 税价格
        /// </summary>
        public string taxPrice { get; set; }
        /// <summary>
        /// 税后价格
        /// </summary>
        public string nakedPrice { get; set; }
    }
}
